package hao.bk.royalmap;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;

public class PublicTransportLayout extends RelativeLayout {

	private RoyalMapActivity main;
	protected TransportGeneralLayout generalLayout;
	
	public PublicTransportLayout(Context context, AttributeSet attrs) {
		
		super(context, attrs);
		main = (RoyalMapActivity)context;
	}
	/**
	 * Hiện thị phương tiện công cộng
	 */
	public void showPublicTransport(){
		generalLayout = new TransportGeneralLayout(main);
		addContent(generalLayout);
		//generalLayout.initParams();
	}
// Thêm trang trong search vị trí
	public void addContent(View view) {
		this.removeAllViews();
		LayoutParams param = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		this.addView(view, param);
	}
	
}
